package com.xqboss.apps.dto.market;

import com.xqboss.apps.dto.PageDto;
import com.xqboss.apps.enums.market.MarketTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *     市场列表参数
 * </p>
 * @author Trent
 * @date 2023/8/24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("市场筛选Dto")
public class MarketDto<T> extends PageDto<T> {

    @ApiModelProperty("标题")
    @Length(min = 0, max = 30, message = "名称不能超过30个字符")
    private String title;

    @ApiModelProperty(value = "市场类型",required = true)
    @NotNull(message = "请输入市场类型")
    private MarketTypeEnum type;

    @ApiModelProperty("分类id")
    private Long categoryNftId;

    @ApiModelProperty("售卖状态(1-在售中 0-已退市)")
    private Integer saleStatus;

    @ApiModelProperty("损耗程度(1-新装备 0-旧装备)-只争对装备")
    private Integer lossDegree;
}
